package cn.foolishbird.crow.enumeration;

import cn.foolishbird.crow.core.CrowEnum;
import cn.foolishbird.crow.enumeration.annotation.DefDictionary;
import cn.foolishbird.crow.enumeration.annotation.Dictionary;

/**
 * @author foolish-bird
 */
@Dictionary(value = "Gender", name = "性别")
public enum GenderEnum implements CrowEnum {

    MALE(1, "男"),
    FEMALE(2, "女"),
    @DefDictionary
    UNKNOWN(3, "未知");

    private final Integer gender;

    private final String desc;

    GenderEnum(Integer gender, String desc) {
        this.gender = gender;
        this.desc = desc;
    }

    @Override
    public Integer value() {
        return this.gender;
    }

    @Override
    public String content() {
        return this.desc;
    }
}
